quit -sim

set UVM_HOME D:/questasim64_2020.1
set UVM_VERSION uvm-1.2

if [file exists work] {
  vdel -all
}

#1.  Create project
vlib work
 
#2.  Compile hello_world.sv
vlog +incdir+$UVM_HOME/verilog_src/$UVM_VERSION/src \
-L mtiAvm -L mtiOvm -L mtiUvm -L mtiUPF \
hello_world_example.sv

#3.  Sim work.hello_world_example
vsim -64 -c -sv_lib $UVM_HOME/$UVM_VERSION/win64/uvm_dpi  work.hello_world_example
#vsim -ldflags "-lregex" -t 1ns -c -sv_lib $UVM_HOME/uvm-1.1d/win64/uvm_dpi work.hello_world_example
 
#4.  Run test 1000ns
#run 1000
run -all
 
#5. Quit
#quit -sim
#quit -f
 